import request from '@/request'
export const listPart = (pageNum, pageSize) => {
    return request({
        url: 'data/list-part',
        method: 'get',
        params: {
            pageNum,
            pageSize
        },
    })
}
export const searchData = (goodsName) => {
    return request({
        url: 'data/search-goods',
        method: 'get',
        params: {
            goodsName,
        },
    })
}
export const insertData = (data) => {
    return request({
        url: 'data/insert-goods',
        method: 'post',
        data,
    })
}
export const updateData = (data) => {
    return request({
        url: 'data/update-goods',
        method: 'put',
        data,
    })
}
export const deleteData = (ID) => {
    return request({
        url: 'data/delete-goods',
        method: 'delete',
        params: {
            ID
        }
    })
}